int lengthOfLastWord(char* s) {
    printf("%d", strlen(s) - 1);
    int i = strlen(s) - 1;
    while (i >= 0) {
        if (s[i] == ' ') {
            i--;
        }
        else{
            break;
        }
    }
    int ret = 0;
    while (i >= 0) {
        if (s[i] != ' ') {
            ret++;
            i--;
        } else
            break;
    }
    return ret;
}